turtlesown word

Assigns a variable to all the turtles in the current project. This variable can then be set to a specific value for each turtle. This command also creates a new primitive made of the word set followed by the name of the variable (e.g., turtlesown "speed creates a setspeed command as in t1, setspeed 12). 

There are two ways to get the value of a given turtle variable: you can talk to a turtle and use the variable name to report the value (e.g., t1, show speed displays 12 in this example) or you can use the turtle name followed by ’s (e.g., show t1’s "speed displays 12). 

Use remove to remove a turtle variable. This removes the named variable for all the turtles in the project.

After a turtlesown instruction, the value of the variable is set to the empty list (see the first three lines in the example below).

Example:

turtlesown "speed
t1, show speed
      (empty list)
t1, setspeed 10
t2, setspeed 20
t3, setspeed 5
t1, show speed
10
show t2's "speed
20
everyone [fd speed]
everyone [forever [fd speed]]

Choose Stopall from the Edit menu.

remove "speed